require('../../API/config')
import admin from '../assets/admin'
import longArticle from '../assets/longArticle'
export default {
    // 登录
    getAdmin({ }, postdata) {
        return admin.adminAddAcount(global.loginpath, postdata)
    },
    // 发布长文章
    getNewsControllersaveLongArticle({ }, postdata) {
        return longArticle.NewsControllersaveLongArticlePath(global.ArticleNewsControllersaveLongArticlePath, postdata)
    },
    // 保存文章到草稿箱
    getDraftsControllersaveLongArticleDraft({ }, postdata) {
        return longArticle.DraftsControllersaveLongArticleDraftPath(global.ArticleDraftsControllersaveLongArticleDraftPath, postdata)
    },
    // 获取草稿箱列表
    getDraftsControllerlistLongArticle({ }, postdata) {
        return longArticle.DraftsControllerlistLongArticlePath(global.ArticleDraftsControllerlistLongArticlePath, postdata)
    },
    // 删除草稿或删除回收站里的文章
    getDraftsControllerdeleteNews({ }, postdata) {
        return longArticle.DraftsControllerdeleteNewsPath(global.ArticleDraftsControllerdeleteNewsPath, postdata)
    },
    // 恢复回收站数据
    getDraftsControllerrecoverNews({ }, postdata) {
        return longArticle.DraftsControllerrecoverNewsPath(global.ArticleDraftsControllerrecoverNewsPath, postdata)
    },
}
